import 'package:flutter_cwhisky/generated/json/base/json_field.dart';
import 'package:flutter_cwhisky/generated/json/classify_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class ClassifyEntity {
	String? code;
	String? message;
	List<ClassifyData>? data;
	int? currentTime;

	ClassifyEntity();

	factory ClassifyEntity.fromJson(Map<String, dynamic> json) => $ClassifyEntityFromJson(json);

	Map<String, dynamic> toJson() => $ClassifyEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ClassifyData {
	String? code;
	String? image;
	String? name;
	String? zhName;
	int? reorder;
	String? subIcon;
	String? subName;
	dynamic goods;
	int? brandSize;
	dynamic brandImage;
	String? gif;
	List<ClassifyData>? children;

	ClassifyData();

	factory ClassifyData.fromJson(Map<String, dynamic> json) => $ClassifyDataFromJson(json);

	Map<String, dynamic> toJson() => $ClassifyDataToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}